{|if $message == 'error'|}
   Error!
{|/if|}
{|if $message == 'ok'|}
    <script type="text/javascript">window.location = "/controlpanel/announcements/"</script>
{|/if|}